1bashThis demonstrates basic string substitution using sed to replace the first occurrence of a pattern in a string.echo "Hello, hello, hello" | sed 's/hello/goodbye/' #Result: Hello, goodbye, helloexternal toolssedstring substitution